//package com.jxpanda.spring.module.auth.endpoint;
//
//import com.jxpanda.spring.module.auth.core.user.OAuth2UserContext;
//import lombok.RequiredArgsConstructor;
//import org.springframework.security.core.userdetails.UserDetails;
//import reactor.core.publisher.Mono;
//
//@RequiredArgsConstructor
//public class RegisterEndpoint {
//
//    private final UserDetailsRepositoryReactiveRegisterManager userDetailsRepositoryReactiveRegisterManager;
//
//
//    public <T extends UserDetails> Mono<T> register() {
//        OAuth2UserContext oAuth2UserContext = OAuth2UserContext.builder().build();
//        return userDetailsRepositoryReactiveRegisterManager.register(oAuth2UserContext);
//    }
//
//}
